package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("drink_data")
public class DrinkData implements Serializable {
    @Id
    private String id;

    @Field("imei")
    private String imei;

    //喝水量，单位：ml
    private Integer drinkLitre;

    //饮液体类型，0：不知，1：水，2：牛奶等
    private Integer type;

    private String date;

    //指令上报的时间
    private Long reportTime;

    private Date createTime;

    private Date updateTime;
}